﻿namespace WebPacker.Tests
{
	using System.IO;
	using System.Text;
	using WebPacker.Compressors;

	internal class TestCompressor : ICompressor
	{
		private int compressCount;

		public TestCompressor(string name)
		{
			this.Name = name;
		}

		public string Name { get; set; }

		public Encoding Encoding
		{
			get { return Encoding.UTF8; }
		}

		public bool Accept(string acceptEncoding)
		{
			return true;
		}

		public void Compress(string content, Stream targetStream)
		{
			compressCount++;
		}
	}
}